import axios from "axios";


// 获取省
export const fetchData=()=>axios.get("/province.json").then(res=>res.data.data.filter(item=>item.parentId===0))


// 获取市
export const fetchCity = (provinceId) => axios.get("/province.json").then(res=>res.data.data.filter(item=>item.parentId===provinceId))

// 获取区
export const fetchArea =(cityId)=>axios.get("/province.json").then(res=>res.data.data.filter(item=>item.parentId===cityId))

